from Auto_interfaceTest.common_utils.read_config import ReadConfig


class BaseData:
    def __init__(self):
        self.data = ReadConfig()

    def get_ip(self):
        """从配置文件中获取固定ip"""
        ip = self.data.get_yaml_data()
        return ip

base_data = BaseData()

if __name__ == "__main__":
    print(base_data.get_ip().get('host'))